import { AutoApplyContact, Icon as AutoApplyContactIcon } from '../auto-apply-contact'
import { AutoClearContacts, Icon as AutoClearContactsIcon } from '../auto-clear-contacts'
import {
  AutoConfirmMassMessage,
  Icon as AutoConfirmMassMessageIcon,
} from '../auto-confirm-mass-message'
import { AutoTransfer, Icon as AutoTransferIcon } from '../auto-transfer'
import { BatchGroupNotice, Icon as BatchGroupNoticeIcon } from '../batch-group-notice'
import { BatchMessage, Icon as BatchMessageIcon } from '../batch-message'
import { ChatFlows, Icon as ChatFlowsIcon } from '../chat-flows'
import { CodeJoinGroups, Icon as CodeJoinGroupsIcon } from '../code-join-groups'
import { DescribeToTags, Icon as DescribeToTagsIcon } from '../describe-to-tags'
import { GroupBatchApply, Icon as GroupBatchApplyIcon } from '../group-batch-apply'
import { GroupMonitorApply, Icon as GroupMonitorApplyIcon } from '../group-monitor-apply'
import { GroupTags, Icon as GroupTagsIcon } from '../group-tags'
import { MobileApp, Icon as MobileAppIcon } from '../mobile-app'
import { NewRank, Icon as NewRankIcon } from '../new-rank'
import { NormalWelcome, Icon as NormalWelcomeIcon } from '../normal-welcome'
import { PersonCardAutoApply, Icon as PersonCardAutoApplyIcon } from '../person-card-auto-apply'
import { RobotSettings, Icon as RobotSettingsIcon } from '../robot-settings'
import { SendMoment, Icon as SendMomentIcon } from '../send-moment'
import { SensitiveIntercepts, Icon as SensitiveInterceptsIcon } from '../sensitive-intercepts'
import { SensitiveWarns, Icon as SensitiveWarnsIcon } from '../sensitive-warns'
import { VoiceToText, Icon as VoiceToTextIcon } from '../voice-to-text'
import { WelcomeMessage, Icon as WelcomeMessageIcon } from '../welcome-message'
import { type AppCategory } from './logics'

export const appCategories: AppCategory[] = [
  {
    id: 'customer-manage',
    name: '客户管理',
    menus: [
      {
        id: 'AutoClearContacts',
        name: '实时清理粉丝',
        icon: <AutoClearContactsIcon />,
        component: AutoClearContacts,
        admin: true,
      },
      {
        id: 'AutoTransfer',
        name: '自动转交客户',
        icon: <AutoTransferIcon />,
        component: AutoTransfer,
        admin: true,
      },
      //{
      //  id: 'DescribeToTags',
      //  name: '描述转换标签',
      //  icon: <DescribeToTagsIcon />,
      //  component: DescribeToTags,
      //  admin: true,
      //},
      {
        id: 'AutoApplyContact',
        name: '自动通过好友',
        icon: <AutoApplyContactIcon />,
        component: AutoApplyContact,
        admin: true,
      },
    ],
  },
  {
    id: 'customer-transfer',
    name: '客户转化',
    menus: [
      {
        id: 'SendMoment',
        name: '发送朋友圈',
        icon: <SendMomentIcon />,
        component: SendMoment,
        beta: true,
        admin: true,
      },
      {
        id: 'NormalWelcome',
        name: '客户欢迎语',
        icon: <NormalWelcomeIcon />,
        component: NormalWelcome,
        admin: true,
      },
      {
        id: 'ChatFlows',
        name: '聊天工作流',
        icon: <ChatFlowsIcon />,
        component: ChatFlows,
        admin: true,
      },
      //{
      //  id: 'WelcomeMessage',
      //  name: '欢迎语增强',
      //  icon: <WelcomeMessageIcon />,
      //  component: WelcomeMessage,
      //  admin: true,
      //  beta: true,
      //},
      {
        id: 'AutoConfirmMassMessage',
        name: '群发自动确认',
        icon: <AutoConfirmMassMessageIcon />,
        component: AutoConfirmMassMessage,
        admin: true,
      },
      {
        id: 'PersonCardAutoApply',
        name: '名片自动加人',
        icon: <PersonCardAutoApplyIcon />,
        component: PersonCardAutoApply,
        admin: true,
      },
    ],
  },
  {
    id: 'group-manage',
    name: '客户群运营',
    menus: [
      {
        id: 'BatchGroupNotice',
        name: '批量群公告',
        icon: <BatchGroupNoticeIcon />,
        component: BatchGroupNotice,
      },
      {
        id: 'GroupTags',
        name: '群标签管理',
        icon: <GroupTagsIcon />,
        component: GroupTags,
        admin: true,
      },
      {
        id: 'GroupMonitorApply',
        name: '群监控加人',
        icon: <GroupMonitorApplyIcon />,
        component: GroupMonitorApply,
        admin: true,
      },
      {
        id: 'CodeJoinGroups',
        name: '口令进群聊',
        icon: <CodeJoinGroupsIcon />,
        component: CodeJoinGroups,
        admin: true,
      },
      {
        id: 'GroupBatchApply',
        name: '群批量加人',
        icon: <GroupBatchApplyIcon />,
        component: GroupBatchApply,
        admin: true,
      },
    ],
  },
  {
    id: 'warn',
    name: '企业风控',
    menus: [
      {
        id: 'SensitiveWarns',
        name: '敏感消息预警',
        icon: <SensitiveWarnsIcon />,
        component: SensitiveWarns,
      },
      {
        id: 'SensitiveIntercepts',
        name: '敏感消息拦截',
        icon: <SensitiveInterceptsIcon />,
        component: SensitiveIntercepts,
        admin: true,
      },
    ],
  },
  {
    id: 'feature',
    name: '特色功能',
    menus: [
      {
        id: 'VoiceToText',
        name: '语音转文字',
        icon: <VoiceToTextIcon />,
        component: VoiceToText,
        admin: true,
      },
      //{
      //  id: 'NewRank',
      //  name: '新榜公众号',
      //  icon: <NewRankIcon />,
      //  component: NewRank,
      //},
      //{
      //  id: 'MobileApp',
      //  name: '移动端应用',
      //  icon: <MobileAppIcon />,
      //  component: MobileApp,
      //},
      //{
      //  id: 'RobotSettings',
      //  name: 'ChatGPT机器人',
      //  icon: <RobotSettingsIcon />,
      //  component: RobotSettings,
      //},
      {
        id: 'BatchSend',
        name: '批量发消息',
        icon: <BatchMessageIcon />,
        component: BatchMessage,
        panel: true,
        admin: true,
      },
    ],
  },
]
